package com.zhuoyue.biz.core.api.dto.rep;


import com.zhuoyue.common.utils.Time;

import java.time.LocalDateTime;

/**
 * @author wjming
 * @Description: 回应基础类
 * @Date 2021/1/24 15:58
 */
public class BaseRepDTO {
    private String id;
    private Long createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = Time.toLongMilli(createTime);
    }

    public BaseRepDTO(String id, Long createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public BaseRepDTO() {

    }

    @Override
    public String toString() {
        return "BaseRepDTO{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
